package fi.foyt.cs.persistence.domainmodel.scene;

import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.google.appengine.api.datastore.Key;


@Entity
@Cacheable
public class Scene {

  public Key getId() {
    return id;
  }
  
  public Long getCategoryId() {
    return categoryId;
  }
  
  public void setCategoryId(Long categoryId) {
    this.categoryId = categoryId;
  }
  
  public SceneType getType() {
    return type;
  }
  
  public void setType(SceneType type) {
    this.type = type;
  }
  
  public String getExternalId() {
    return externalId;
  }
  
  public void setExternalId(String externalId) {
    this.externalId = externalId;
  }

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Key id;

  private Long categoryId;

  @Column (nullable = false)
  private SceneType type;
  
  private String externalId;
}